projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6752bd
)
widget: Avoid uninitialized access
author
Matthias Clasen
<mclasen@redhat.com>
Sun, 28 Jun 2020 15:24:09 +0000
(11:24 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Sun, 28 Jun 2020 17:42:02 +0000
(13:42 -0400)
Initialize all field in the GtkCrossingData struct
when synthesizing crossing events.
Fixes: #2743
gtk/gtkwidget.c
patch
|
blob
|
history
diff --git
a/gtk/gtkwidget.c
b/gtk/gtkwidget.c
index 857aa9ac628cc4a6916135eddefe3165719c7ca6..1134e4a97964a58210aff04947e88ab9ea0339c5 100644
(file)
--- a/
gtk/gtkwidget.c
+++ b/
gtk/gtkwidget.c
@@
-7539,9
+7539,11
@@
_gtk_widget_synthesize_crossing (GtkWidget *from,
g_return_if_fail (from != NULL || to != NULL);
crossing.type = GTK_CROSSING_POINTER;
+ crossing.mode = mode;
crossing.old_target = from;
+ crossing.old_descendent = NULL;
crossing.new_target = to;
- crossing.
mode = mode
;
+ crossing.
new_descendent = NULL
;
if (from)
{